export const whatBrowserFun = (userAgent) => {
  if (userAgent.includes("Chrome")) {
    // 当前浏览器是 Chrome
    console.log("当前浏览器是 Chrome");
    return false;
  } else if (userAgent.includes("Firefox")) {
    // 当前浏览器是 Firefox
    console.log("当前浏览器是 Firefox");
    return false;
  } else if (userAgent.includes("Safari")) {
    // 当前浏览器是 Safari
    console.log("当前浏览器是 Safari");
    return false;
  } else if (userAgent.includes("Edge")) {
    // 当前浏览器是 Microsoft Edge
    console.log("当前浏览器是 Microsoft Edge");
    return false;
  } else if (userAgent.includes("Opera") || userAgent.includes("OPR")) {
    // 当前浏览器是 Opera
    console.log("当前浏览器是 Opera");
    return false;
  } else if (userAgent.includes("Trident") || userAgent.includes("MSIE")) {
    // 当前浏览器是 Internet Explorer
    console.log("当前浏览器是 Internet Explorer");
    return false;
  } else {
    // 当前浏览器未识别
    console.log("当前浏览器未识别");
    return true;
  }
};
